/*
 * HandMatrix.h
 *
 *  Created on: 21 May 2012
 *      Author: rveitch
 */

#ifndef HANDMATRIX_H_
#define HANDMATRIX_H_

#include <sstream>
#include <stdexcept>
#include <errno.h>
#include <stdio.h>
#include <string.h>

#include "CSVReader.h"
#include "Card.h"


class HandMatrix {
	CSVReader csv;
	int matrix[13][13];

public:

	HandMatrix(const std::string& filename);
	virtual ~HandMatrix();

	int getM(Card, Card);

	CardDeck::Face minFace(Card c0, Card c1){ return ( c0.getFace()>c1.getFace() ) ? c1.getFace() : c0.getFace(); }
	CardDeck::Face maxFace(Card c0, Card c1){ return ( c0.getFace()>c1.getFace() ) ? c0.getFace() : c1.getFace(); }




};

#endif /* HANDMATRIX_H_ */
